package com.chinasoft.dfs;

import com.chinasoft.teacher.TrueWord;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class dsf implements TrueWord {
    public dsf() {
        wordList.add("哈哈哈哈  ！");
        wordList.add("金铲铲我得第一  ！");
    }
    List<String> wordList = new ArrayList<String>();
    Random random = new Random();

    @Override
    public String getName() {
        return "dfs ";
    }

    @Override
    public String getWords() {
        // 得到随机数
        int index = random.nextInt(wordList.size());
        return wordList.get(index);
    }
}
